package com.yuxi.Dao.Impl;

import java.io.Serializable;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.yuxi.Dao.InformationSortDao;
import com.yuxi.Dao.Impl.BaseDaoImpl;

import com.yuxi.Entity.InformationSort;

@Repository
public class InformationSortDaoImpl extends BaseDaoImpl<Serializable, Serializable> implements InformationSortDao {
	private Logger logger=LoggerFactory.getLogger(InformationSortDaoImpl.class);
	public InformationSortDaoImpl(){
		super(InformationSort.class);
	}
	@Override
	public InformationSort getISort(Integer InforationSortId) {
		// TODO Auto-generated method stub
		return (InformationSort) super.get(InforationSortId);
	}

	@Override
	public InformationSort addISort(InformationSort iSort) {
	return (InformationSort) super.addAndReturn(iSort);
	}

	@Override
	public void deleteISort(InformationSort iSort) {
		// TODO Auto-generated method stub
		super.delete(iSort);
	}

	@Override
	public void modifly(InformationSort iSort) {
		// TODO Auto-generated method stub
		super.update(iSort);
	}
	@Override
	public List<InformationSort> getAllInformationSort() {
		// TODO Auto-generated method stub
		List<InformationSort> informationSorts=super.find("from InformationSort");
		return informationSorts;
	}

}
